//
//  viewOfTag.m
//  mintHome
//
//  Created by 朱彦名 on 16/6/17.
//  Copyright © 2016年 朱彦名. All rights reserved.
//

#import "viewOfTag.h"
#import "modelOfMintHome.h"

@implementation viewOfTag

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)init{

    self = [super init];
    if (self) {
        [self creatViewOfTag];
    }
    return  self;
}
- (void)creatViewOfTag{

//    self.buttonOfTag = [UIButton buttonWithType:UIButtonTypeSystem];
//    [self addSubview:self.buttonOfTag];
//    //self.buttonOfTag.backgroundColor = [UIColor cyanColor];
//    [self.buttonOfTag addTarget:self action:@selector(handleTouch:) forControlEvents:UIControlEventTouchDown];
//    [self.buttonOfTag setImage:[UIImage imageNamed:@"xihuan"] forState:UIControlStateNormal];
    
    
    self.labelOfTag = [[UILabel alloc]init];
    [self addSubview:self.labelOfTag];
    self.labelOfTag.textColor = [UIColor whiteColor];
}
- (void)layoutSubviews{

//    self.buttonOfTag.frame = CGRectMake(0, 0, self.frame.size.width / 3 , 40);
    
    self.labelOfTag.frame = CGRectMake(self.frame.size.width / 3 , 0, self.frame.size.width  / 3 * 2, 40);

}

@end
